#! /bin/bash
# 自启动脚本 仅作参考

set +e
sh ~/.config/mango/scripts/gtkthemes
# obs
dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=wlroots
/usr/lib/xdg-desktop-portal-wlr &

# notify
swaync &

# night light
wlsunset -T 3501 -t 3500 &

# wallpaper
wpaperd -d &

# top bar
waybar -c ~/.config/mango/waybar/config.jsonc -s ~/.config/mango/waybar/style.css &
foot --server &

#echo "Xft.dpi: 140" | xrdb -merge #dpi缩放
# 开启输入法
fcitx5 --replace -d &

# keep clipboard content
wl-clip-persist --clipboard regular --reconnect-tries 0 &

# clipboard content manager
wl-paste --type text --watch cliphist store &

# mako &
hypridle &

# inhibit by audio
sway-audio-idle-inhibit &

# change light value and volume value by swayosd-client in keybind
swayosd-server &

# mpvpaper -vs -o "no-audio --loop-playlist shuffle" DP-3 $HOME/video -f &
